package jobs;

import controllers.chat.ChatController;
import models.chat.Channel;
import play.jobs.Job;
import play.jobs.OnApplicationStart;

/**
 * @author Konovalov_Nik
 */
@OnApplicationStart
public class InitGlobalJob extends Job {
    @Override
    public void doJob() throws Exception {
        Channel global = new Channel(ChatController.GLOBAL);
        global.save();
    }
}
